package com.juzipi.demo.controller;


import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {



    @GetMapping("hello")
    public String hello(){

        return "hello security";
    }

    @GetMapping("all")
    public String all(){

        return "登陆就可以访问！！！！";
    }

    @GetMapping("test")
    public String test(){

        return "你有权限";
    }


}
